{% extends 'basic_app/master.html' %}
{% block tag_left %}
    {% include 'basic_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">主机详情页</h2>
        <form class="form-horizontal" action={{ request.path }}   method="post">
            <div class="form-group" style="display:none" >
                <label  class="col-sm-2 control-label">id：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="v_id" value={{ more_result.id }} placeholder="id" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">name：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="name"  name="add_hostname" value={{ more_result.name }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Hostname：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="主机名"  name="add_hostname" value={{ more_result.hostname }} readonly="true">
                </div>
            </div>
                      <div class="form-group">
                <label  class="col-sm-2 control-label">描述：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="描述"  name="add_desc" value={{ more_result.desc }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Ip：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="IP" name="add_ip" value={{ more_result.ip }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Port：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="Port" name="add_port" value={{ more_result.port }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">管理IP：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="管理IP" name="add_sid" value={{ more_result.gm_ip }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">其它IP：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="其它IP" name="add_sid" value={{ more_result.other_ip }} readonly="true">
                </div>
            </div>

            <div class="form-group">
                <label  class="col-sm-2 control-label">状态：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="状态" name="add_conn_string" value={{ more_result.status }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">类型：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="类型" name="add_conn_string" value={{ more_result.type }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">操作系统信息：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="操作系统信息" name="add_osversion" value={{ more_result.osversion }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">位置：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="位置" name="add_place" value={{ more_result.place }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Cr_time：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="创建时间" name="add_crtime" value={{ more_result.crtime }} readonly="true">
                </div>
            </div>

            <div class="form-group">
                <label  class="col-sm-2 control-label">Ch_time：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="修改时间" name="add_chtime" value={{ more_result.chtime }} readonly="true" >
                </div>
            </div>

            <div class="form-group">
                <label  class="col-sm-2 control-label">Remark：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="备注" name="add_remark" value={{ more_result.remark }} readonly="true">
                </div>
            </div>

            <div class="col-sm-10">
                <div style="text-align:center;vertical-align:middle;"> <button type="submit" class="btn ">返回</button></div>
            </div>
        </form>
    </div>
{% endblock  %}
{% block script %}
    <script>
        window.onload=function(){
            var dept_set = document.getElementById("dept_select").getAttribute("type");
            document.getElementById('dept_select').value=dept_set;}
    </script>
{% endblock %}